//
//  FYFTitleLabel.m
//  TipNavigation
//
//  Created by fuyoufang on 16/2/21.
//  Copyright © 2016年 fyf. All rights reserved.
//

#import "FYFTitleLabel.h"

@interface FYFTitleLabel ()

@end

@implementation FYFTitleLabel

+ (instancetype)labelWithTitle:(NSString *)title index:(NSInteger)index {
    FYFTitleLabel *label = [[FYFTitleLabel alloc] init];
    label.text = title;
    label.textAlignment = NSTextAlignmentCenter;
    label.index = index;
    return label;
}

/** 通过scale的改变改变多种参数 */
- (void)setScale:(CGFloat)scale {
    _scale = scale;
    self.textColor = [UIColor colorWithRed:scale green:0.0 blue:0.0 alpha:1];
//    CGFloat minScale = 0.7;
//    CGFloat trueScale = minScale + (1 - minScale) * scale;
//    self.transform = CGAffineTransformMakeScale(trueScale, trueScale);
}

@end
